Creates a new instance of WidgetApplication.
Adds the given widget.
The following callbacks will be made on the given widget in, if applicable:
If a graphics subsystem error has occurred.
Puts the given widget into the background.
Widgets are rendered back-to-front. Input is consumed front-to-back until a widget has consumed the input event.