Bugfix: bind mouseup event outside the document to the active window

Problem was:
1- drag a window outside the document
2- mouseup outside the document
3- move the mouse inside the document --> the window movement still
binded.
This commit fixes this behaviour.
v0.1.20