createSVGRect

The createSVGRect() method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.

MDN Reference