@cakevreter2000 Hi there, sadly MacOS doesn't have the windows resizing functionality that you are describing. You have to install an application that will let you do that like 'Magnet' on the App store. I use that but there are a few others. i believe there was one called 'Better Snapping Tool' or something, but I highly recommend Magnet.
Hope I helped