Editor add scene to hierarchy with code

Hi All
I’m working on tools and need a way to add a scene to the hierarchy using code. Basically I click a button and want this to load a new scene from a directory into the hierarchy. So i end up with something like

|
|
—Original scene
|
|
—New Scene

I found an editor command to load a scene but this is obsolete in Unity 2021.
Can anyone advise? Thanks.

1 Like

Thanks you!