Windows does not close if the browser area is less than half of the screen

Windows does not close if the browser area is less than half of the screen.
Tested in Mozilla 102.0 (64 bit) Windows and CHROME
100.0.4896.127 browsers Suite 7.3.4

I’m sorry, it’s not the window that’s to blame, but the resizer. As soon as I removed it everything worked