libide/gui: fix preference window reuse
Unconditionally add the preferences window to the application so that the reuse logic at the top of the function is triggered. Without this, multiple identical preferences windows can be opened, contrary to the expectation that the currently open preferences window would be focused instead of opening a new preferences window.