When creating a new window call ReleaseCapture to immediately start
receiving all mouse input, regardless of the position of the cursor or if
there is a previous capture.
When creating a new window on Windows (only) and doing so with the corner action zones (shift-drag), the new window will usually ignore mouse input at first even though it appears to have focus. Following shows trying to drag the window immediately after creating it:
This is because of a previous mouse capture. But in this case we want to start fresh and take immediate input from the new window, not connect the previous mouse inputs when creating the window with new input. This is done by calling ReleaseCapture during window creation. Start getting new mouse inputs, disregarding what came before.
After this patch is applied:

