function createRectInit(x, y, width, height) {
        return { x: x, y: y, width: width, height: height };
    }
Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit

@param {number} x - X coordinate.
@param {number} y - Y coordinate.
@param {number} width - Rectangle's width.
@param {number} height - Rectangle's height.
@returns {DOMRectInit}