The window manager is pretty basic on macOS (Ventura or higher). You can move the window to one of the sides, move it to another connected monitor, or send it to an iPad.
There are some tools to improve this. The ones I have tried are Moom, Magnet, and Rect...