I'm not sure why it's not appearing in game like the other windows(partyCommand, ActorCommand and the StatusWindow (character faces, names, hp/mp/tp, etc), despite writing the methods in an almost identical way. I suspect it has to do with the windows not actually being added, though the createxxxWindow() would suggest otherwise. I know how to move, resize, add rows, columns, etc existing windows. According to Scene_Base, these are added to the scene via addChild() method (inside addWindow()).
JavaScript:
const _Scene_Battle_ = Scene_Battle.prototype.createAllWindows;
Scene_Battle.prototype.createAllWindows = function() {
_Scene_Battle_.apply(this, arguments);
this.createScanWindow();
};
Scene_Battle.prototype.createScanWindow = function() {
const rect = this.scanWindowRect();
const scanWindow = new Window_BattleStatus(rect);
this.addWindow(scanWindow);
this._scanWindow = scanWindow;
};
Scene_Battle.prototype.scanWindowRect = function() {
const ww = 192
const wh = this.windowAreaHeight();
const wx = 0;
const wy = Graphics.boxHeight - 100;
return new Rectangle(wx, wy, ww, wh);
};