Worse than that, it's one of the go-to get-out-of-jail sequences for Windows windows that are misbehaving. Got a window that you can get focus to but it's not on screen properly? Alt+Space, X to the rescue!
They'd better not break this.
They'd better not break this.
If you restore it again, it flies off screen again.
Your method is how I do it (modulo using M for move, rather than reaching for the cursor keys.)