display a window and manage it's event queue

Signed-off-by: Jan Dvořák <mordae@anilinux.org>