You haven't specified the version involved, but you should be able to hold the option key and double click the bottom edge of the window to resize it.
MacOS Catalina how to change windows size without buttons?
You haven't specified the version involved, but you should be able to hold the option key and double click the bottom edge of the window to resize it.