Compiles and opens a window when run.