create second sceneview with different scene
Say I want to develop a custom editor window in which a second sceneview is displayed which is different from the current sceneview in the editor.
I am able to create a second sceneview through scripting using
SceneView secondSceneView = ScriptableObject.CreateInstance<SceneView>();
secondSceneView.Show();
and a new scene through
Scene myScene = EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects, NewSceneMode.Additive);
What that does is create a new Scene in my hirachy and both scenes are displayed at the same time, both in the original sceneview (in the editor) and the freshly created secondSceneView.
Is there a way to display "myScene" only on "secondSceneView" and not in the original sceneview (in the editor) and likewise have the content which is already displayed in the original sceneview editor not being displayed in "secondSceneView"? There is probably a way with
EditorSceneManager.UnloadScene();
and then setting each respective scene active or inactive within the sceneviews but that seems a bit complicated. I was wondering if someone can think of a more elegant or, indeed, any solution at all?