Display a GUI window. The window need not have any contents, but should respond to requests to be closed.

using System;
using System.Windows.Forms;
 
public class Window {
    [STAThread]
    static void Main() {
        Form form = new Form();
 
        form.Text = "Window";
        form.Disposed += delegate { Application.Exit(); };
 
        form.Show();
        Application.Run();
    }
}