Created Window class with MessageHandler policy.