If the `getRetinaFactor ` applies to all desktop platform, It is better use this code snap in mac/linux/windows, not just mac