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 Rectangle. I can tell you in advance that they are very similar in how they intend to solve this problem.
macOS standard window controls
Let’s first see what macOS offers by default (Ventura or higher). If you hover over the maximize icon, you will see these options: