Thank you, but this is not quite what I was asking. As I said, I'm writing an editor plugin, so I want to add a root node to the currently edited scene. Not switching scenes inside the running game, but (for example) adding a new root node to an empty scene in the editor.