Dragging a window across two screens with the mouse works, but it is slow when the window is maximized. Windows has a shortcut that does the move in one go.
Win+Shift+Left arrow
Win+Shift+Right arrow
In Microsoft’s list for Windows 11 these move the active window to the monitor on the left and to the monitor on the right. Click the window you want first, then press the combination.
There are a few neighbours worth knowing, all from the same list:
Win+Shift+Up arrowstretches the desktop window to the top and bottom of the screen.Win+Homeminimizes or restores all windows except the active window.Win+Commalets you temporarily peek at the desktop.
The plain Win+Arrow keys snap the current window instead. Microsoft’s snap page says you can keep pressing arrows to change the position, and the window is placed when you release the Windows key.
One caveat: the shortcut only makes sense with a second monitor connected. With one screen there is no monitor on the left or right to move to. After a plain Win+Arrow snap, Windows also opens Snap Assist so you can fill the rest of the screen, which is a different job from moving a window between monitors.
Further reading: Keyboard shortcuts in Windows (Microsoft Support), Snap your windows (Microsoft Support)