The instructions at Electron.NET instruct to add the following snippets to my .NET 6 project for Electron to run.
Add to Program.cs:
public static IHostBuilder CreateHostBuilder(string[] args) =>
    Host.CreateDefaultBuilder(args)
        .ConfigureWebHostDefaults(webBuilder =>
        {
            webBuilder.UseElectron(args);
            webBuilder.UseStartup<Startup>();
        });
Add to Startup.cs:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    ...
    // Open the Electron-Window here
    Task.Run(async () => await Electron.WindowManager.CreateWindowAsync());
}
Since there is no longer a Startup.cs file, how do I convert this code to a usable state for a modern Program.cs file?
Obviously it's not as simple as putting all the code into a modern Program.cs file. I scoured google for an answer to this issue and didn't find anything. I also poured through the documentation in the github repository and Electron website. I don't have the experience to figure this out on my own and would love some help.
