Detect if using retina display from python
You can can now access the pixel size with bpy.context.user_preferences.system.pixel_size (commit)

This works for retina scale or bpy.context.user_preferences.system.virtual_pixel_mode