IDEX-1423. Use styled window then try close unsaved file instead of brow...

...ser pop up.