because if it moves beyond that the user will not be able to drag it back and close it through close button.
But how can that happen?
In order to drag the window outside the desktop your mouse needs to be able to get out of the desktop, and that is not possible (at least not in the normal case).
So, a situation that your widget/window comes out of the reach of your mouse is not possible...
Or please explain how it is.