Core: Prevent dragging windows outside screen