To create a new Wiki page in SitePages library, SharePoint has the “CreateWebPage.aspx” page, by default. To open this page, SharePoint has its inbuilt JavaScript method to open the page in a dialog box.

Use the _GoToCreateNewPage() JavaScript method from anywhere from any page to popup a page for creating a Wiki page in the site

We will get the screenshot, given below, after calling the JavaScript method: