Added onBlur and onFocus methods to WindowElement