There are a handful of great utilities on the Mac for managing how much of your screen a window takes up: Moom, Mosaic, and BetterSnapTool, to name a few. (I use Mosaic on my Mac at home, and BST on my work MacBook.)
Here’s a short video showing how I use Mosaic regularly to split my display’s real estate between two applications.
The ever-evolving Raycast, interestingly, can be used for the same purpose. There are a number of pre-configured extensions that you can invoke by typing the name of the action, including splitting the open windows between the right and left halves of your display.