Created the main GUI window for the text editor.