- Alt + Tab to choose the window
- Alt + Space to open the context menu
- Press ‘m‘ to select move
- Press any arrow key once
- Move your mouse and the misplaced window will follow your cursor
Tested on macOS Mojave version 10.14.
This fixes an issue that sometimes happens with Atom.