DebugWindow resize/move improved, fixes #11937 (also implements shift-resize and alt-move, improves bounds-check)

Change-Id: Ic313e545940a6073e30171a610f6d02c38a90037