Remove new window creation code from MainWindow

Application class now takes care of that.
Remove borderless window feature