Extended the API so that it is possible to open the preview pane from within a package (#362).
Merge pull request #383 from akoenig/api-open-preview

API: Open a preview pane from within a package.