DraggingAndWindowResize is a bit of a priority lab. It shows a view with its own drag resize box inside of a window, like Safari has for multiline editable text views in a web page. If the window needs to get bigger to accommodate your dragging, it does. This demonstrates mainly NSLayoutPriorityDragThatCanResizeWindow.
This sample requires OS X 10.7 or higher.