NB! Changed 3rd party lib here!!! Added min and max window size when resizing. Did it so that I won't forget about it when will be migrating to DirectX/WinAPI