frame, realFrame, or something else as equivalent of RGSS viewport

Thought I figured out how to use the JS equivalent of viewport with frame, and it does seem to work in my Title Screen plugin:
Scene_Title.prototype.drawBackground = function() {
var bitmap = ImageManager.loadTitle1('TitleBG');
var bg = new Sprite(bitmap);
this._bg = bg;
this._bg._frame = new Rectangle(0,0,100,100);
this.addChild(bg);
}

But when I copy the method to a new Scene and change the Scene_Title to Scene_Test it displays the entire image instead of just a 100 by 100 box in the top left corner of the screen.

(realFrame doens't seem to work either, I used https://kinoar.github.io/rmmv-doc-web/classes/sprite.html as reference, if you got a better one, I'd be glad since all the links to the details seem to lead to a 404)
Actually, if you want to influence frame, you need to influence texture's frame (in this case it could be the bitmap as well I guess), not the sprite's frame. If you want to deal with sprites, you need to assign a PIXI mask filter to them.

Original thread: https://forums.rpgmakerweb.com/threads/frame-realframe-or-something-else-as-equivalent-of-rgss-viewport.104686/