Window's reparenting API for Windows and X11