window.location in CC 2018 on my iMac with a 5k retina display reports coordinates that make no sense at all. In Windows it works fine. I created a simple test window with a button to alert coordinates. The coordinates make zero sense based on the window location. See the screenshots. Is there another way to get the coordinates?
testWin = new Window('dialog');
testWin.margins = 15;
btn = testWin.add('button');
btn.text = 'Where Am I?';