How to make element with actual boundaries?

I used this (hack?) to import SVG file by creating a rectangle and then pasting SVG code into it's "pen tool".
How can I make resulting element to stick to dimensions of the SVG in it? otherwise it's freely resizable and that sizing does not affect the inner SVG.

I tried removing viewbox from SVG.

You could try and set the svg width and hight to 100%

<svg width="100%" height="100%" xmlns="" viewBox="0 0 100 100">