Creates the main application window with security configurations. Sets up window properties, CSP, and event handlers.
Creates the main application window with security configurations. Sets up window properties, CSP, and event handlers.