1. Add a comment.

2. Do not activate application - not to steal keyboard focus from a terminal app's window.
3. Specify activation policy (to be able to create a window)
4. Set a special window style (NonactivatingPanel) to be able to create a working GUI from background process.
5. Set a window level different from 'normal' to make a window visible.