@alexmojaki said:
Incidentally, I haven't tested any of this on Windows yet, so we'll see what happens when I try there. This might not be over yet.
Aaaand...I'm back! Indeed, this solution doesn't really work on Windows, because as soon as window.blur() is called, it doesn't just remove focus from the dialog, but from the whole Sketchup application! Sketchup goes into the background, yet somehow it is the window that is open according to the taskbar, and if you click on it in the taskbar to try and reopen it it minimises it.