Added setSize, setPosition for windows plus focus callback