Document.adoptNode() transfers a node/dom from another Document into the method's document.
Document.adoptNode()
MDN Reference