Add HiDPI detection

This method of HiDPI ("Retina" in Apple proprietary version) detection is much better than devicePixelRatio checking.
Why this numbers?