Create new page programatically within the panel

Hint:
Look at

Creating pages programatically?

and at

Subpage builder