Create Inherited Scene in code?

Is there an API for editor addons to create an inherited scene? I can not seem to find anything like that.

There’s currently no api for creating an inherited scene (see this issue on github, which seems to provide a workaround).

There’s also an open pull request which implements this feature: