I have an EditorWindow script to download some library scripts into a project.
This project would be compiled when first open it with Unity, but without library scripts, it would produce some errors which blocked my Editor script running. That means no options list in my Unity Menu.
So after finding ways to break this infinite loop, I compiled my EditorWindow script into a dll file. Options appeared in my Unity Menu.
But this window could not be created when clicking this option, dig into the source code I found it was because of ScriptObject.CreateInstance returns a null object due to no file named with this EditorWindow’s class name.