Is there a way to add a page to the document? I've been able to create a new page and add it to the pages array, but I'm not sure how to get the document to recognize that the page has been added and display it. It looks like there's an "onAddPage" handler in the headers, but I'm not sure how to trigger that, or if that's what's supposed to happen.
Here's a simplified version of what I have so far:
var sketch = context.api();
var doc = context.document;
var page = sketch.selectedDocument.selectedPage.sketchObject;
var dupPage = page.copy();
// Now what?