Generic Window Handler.