A WindowApplication — the object returned by wm.open(...) — is one live window in the SGApps window-manager. It owns a DOM node, a header, a content section, and a lifecycle (open → focus/blur → close). Every method below is bound directly on the returned instance; there are no factories or handles in between.
Related: Window Manager covers how to open one; Dialogs covers modal-child windows spawned from any window instance.
The buttons below open real WM windows in this page. First click loads the SDK via exporter.js (~1 s); subsequent clicks reuse the same window-manager instance. Close a window via its × button or use "Close all demo windows" below to clear them.
<script>(function () {
if (window.__docsWm) return;
// Lazy-load exporter.js (only the first inline script in a docsify
// page executes on route change, so both the loader and the boot
// logic have to live inside a single script tag).
if (!window.__docsWmExporterLoading) {
window.__docsWmExporterLoading = true;
var s = document.createElement("script");
// Absolute URL matters — exporter.js infers the RootHost from
// its own ` -->
sgapps.io