You almost certainly need the operating system installed for your application to work. It has to make at least some kind of system calls to do even the most basic I/O, let alone all the layers of frameworks and system services required to make a GUI app function.