[#32][#39] Implemented the proper way of scaling when window is resized, preparations for migrating from glfw.