In Unity 2021, there is a way to set a gameobject in the Hierarchy as the scene's Default Parent, which would auto parent new objects to that gameobject. It's pretty useful, but I have no idea how to do that when using a MenuItem to create a custom gameobject. There doesn't seem to be a way to "get" the current scene's Default Gameobject, but I've seen some third party assets do this.
How can this be done? Thanks.