A polyfill for the removed Window.showModalDialog function