Adding support to window objects