Adding a window extension to find out it's scaling factor. (Detect retina display)