Created WindowUtils class for utilities concerning UI windows.