When moving a window from one monitor to another, or when a monitor's DPI/scaling settings change, the window resizes incorrectly and no longer functions properly.