Content text to page object

Maybe I’ve been on to this before but I could not get a good answer on it. I’ve looked into the core but it did not help.

Is it possible to convert a content text outside the content folder to a page object?

Would be a nice solution

$content:

Title: Home

----

Text: 

A long long text.

Something similar to this:

$page = contentToPageObject($content, 'a-template-name');
echo $page->title();

My findings - not much

I did find something but I don’t know if I could use it in any way:

$child = new Page($this, $dirname);

It references to itself $this and a directory name. It seems like $this is the parent page object and I don’t have a page object to start with so I guess that fails.