window.devicePixelRatio is incorrect

Checking on Retina screen.

window.devicePixelRatio is 2 in CEP.
window.devicePixelRatio is 1 in UXP.

Any way to get devicePixelRatio? it helps with properly scaling elements.

Kinda related:

await require("photoshop").core.getDisplayConfiguration({});

Returns scaleFactor:2, which is correct.

which works if we have 1 screen. Once we have two monitors with different scale factors it stops working (imaging macbook + traditional external monitor).

Is there an API to detect on which monitor the UXP panel is located?

There is is isPrimary flag. Will it change once we move the panel to another screen?