Did you know you can move macOS window by edges?
Drag an edge in a direction 90-degrees to how you would resize then keeping the mouse/trackpad down move the window in any direction.
e.g. click-hold middle of right vertical edge of window, then drag up (or down) then while still holding button drag to move window in any direction.