When a window is maximized, you can still drag it around. It should either prevent moving the window, or restore the window to normal when dragging it