Did some code cleanup on TyleEditorWindow.cs