createWin function

Create a GUI Window