Is there a hack/workaround to make OSX builds have Retina support?

What I’m doing is calling

[[[[NSApplication sharedApplication] mainWindow] contentView] setWantsBestResolutionOpenGLSurface:YES];

via native plugin.

After that the output becomes no more pixelated, but is only displayed in the lower left quarter of the window, as if viewport is configured incorrectly.

Is there a way/workaround to hack this viewport and extend it to the window size?

Vote here to add retina support on standalone builds: https://feedback.unity3d.com/suggestions/retina-for-os-x-standalone-builds