add doc for window.getPid()