what I've seen is that when you try to drag outside the window, it gets interpreted as a scroll request and the window starts scrolling until you move the mouse back into the window area.
I don't know if this is implemented by the window manager or by the individual app.