If you have a window on monitor one, and another window on monitor two, then move the window from monitor one to monitor two, the window that was on monitor two and has been swapped to one takes the focus, rather than focus staying on the window you were moving.