Use SDK to show/hide a window while flying

Here is the simple scenario:

  • While flying, push some button on yoke.
  • a window should appear with some “hello wold” text.
  • push the button again.
  • the window disappears.

Can I achieve this using SDK? If yes, how?