I’ve created a custom EditorWindow, which opens via a MenuItem and the GetWindow method just as shown in the documentation. I then dock the window next to my sceneview. When I reopen my project it still shows, which is what I want. However, when I open a different project, which doesn’t contain the code for said window, Unity still tries to display it, but then throws the error “Removed empty DockArea while reading window layout.” and “Removed unparented EditorWindow.”. I have not actively saved my custom window with the window layout, but apparently it still tries to recreate it.
Not a big problem, but I’m still interested to know what a good practice would be. Do I need to set HideFlags on EditorWindows or do something else to avoid these kinds of warnings?