[Window]: fix set an Element as window content