• Creates the main application window and registers IPC listeners.

    Returns void

    Sets up the preload script, window options, and loads the appropriate URL or file depending on environment.