MZ [SOLVED] Need help on how to add a new command window during Battle

To explain what I'm trying to do, during the Battle process, I want to add a small 'Yes/No' Command window that should pop up after the player has selected actions for all party members.

Normally, once the last actor has decided an action (attack, skill, etc.) the turn starts immediately. I would like to add a final check asking the player if they're sure they like their selection.

I managed to get this working on MV some time ago, but I have decided to upgrade to MZ, tried my old code but it didn't work, so I'm trying to rebuild it to the new convention.

But... it's not working. I've tried everything I could think of but I'm not able to get this to work in MZ. Inspector reveals the window is being created correctly, but it's not showing up at all. I feel like I'm missing something obvious, it's been a year since I last touched Javascript or RPG Maker. I attach my (wrong) code.

Can anyone tell me what am I doing wrong?
Notes:
  1. You should have an addWindow line in your scene code, e.g.
    JavaScript:
    this.addWindow(this._ConfirmWindow);
    This adds the window to the window layer, so it gets drawn on-screen.

  2. You can tell the window how to respond to a choice by using its setHandler method from the scene, e.g.
    JavaScript:
    this._ConfirmWindow.setHandler('battleConfirmYes', /* some function */);
    this._ConfirmWindow.setHandler('battleConfirmNo', /* some other function */);
    Remember to use Function#bind if the function(s) need to be executed in a specific context:
You might also need to patch Scene_Battle#isAnyInputWindowActive to ensure the battle "pauses" while waiting for the user to choose Yes/No.
Thank you very much for all the suggestions, I will try this as soon as possible!

Edit:
Thanks @caethyril, I got the window running and I understand the code a lot better now.

Adding a check for my window in Scene_Battle#isAnyInputWindowActive, this alone doesn't seem to pause the game flow, though I suspect what the cause is now have an idea where to look. Thanks again, this thread is solved!

Original thread: https://forums.rpgmakerweb.com/threads/solved-need-help-on-how-to-add-a-new-command-window-during-battle.148556/