How can I get the root and overlay inside the document.body instead of adjacent to document.body

As the title says, I need the overlay and shadow root inside document.body?
Was this page helpful?