MZ (VisuStella) How to Draw Actor Portrait in Core Engine Menu Layout Settings?

Regarding Visustella's Core Engine, is it possible to draw an actor's portrait in the Menu Layout Settings? Specifically, I'd like to draw an actor's portrait in the status window. However, I only have little experience in JavaScript and cannot figure this out. I'm also exclusively using VisuStella plugins.

I want to use the Menu Layout Settings in the Core Engine because this allows me to change the dimensions of each window in the scene. I've tried copying and pasting code from VS's Main Menu Core plugin (specifically JS: Portrait) to draw an actor's portrait in Scene_Equip -> Status Window JS, but it doesn't work and I don't understand why. Here is the code I used in Scene_Equip -> Status Window JS:
Spoiler: Scene_Equip -> Status Window JS
JavaScript:
// Declare Constants
const x = 0;
const y = this.mainAreaTop();
const width = this.statusWidth();
const height = this.mainAreaHeight();
const actor = arguments[0];

// Draw Actor Graphic
const gw = width;
const gh = height;
const gx = x;
const gy = y;
this.drawItemActorMenuImage(actor, gx, gy, gw, gh);

return new Rectangle(x, y, width, height);

Spoiler: Code Error
1731438739551.png
1731438753049.png

I acknowledge this likely isn't possible since VS code is obfuscated, but I wanted to post to see if what I want is possible or if there was a plugin option I've missed. I also acknowledge the portrait can easily be shown in VS's Item and Equips Core plugin, Equip Menu Settings -> Use Updated Layout -> true, which automatically includes the actor's portrait in the equip scene. However, this overrides the Core Engine window settings, which prevents me from changing the dimensions of windows in the equip scene.

Lastly, for the sake of context, an actor's portrait is a feature in VS's Main Menu Core plugin, which displays a graphic drawn from the project's pictures folder. Here's a screenshot sample of an actor's portrait (the various characters across the center of the screen):
Spoiler: VS Main Menu Core Portrait Example
1731437823339.png

Using the Window Layout settings in VS's Core Engine, is it possible to draw an actor's portrait in the Scene_Equip -> Status Window JS?

Original thread: https://forums.rpgmakerweb.com/threads/visustella-how-to-draw-actor-portrait-in-core-engine-menu-layout-settings.173187/