How do I create a window on the Map scene?

I've made a stealth plug-in, but need to add a small, borderless window which would contain the stealth gauge to show how hidden you are.

I've tried creating a new Window instance and that didn't work.

Do I modify Scene_Map? 

The window should only be visible when the player is on the normal Map screen.  

Thanks.
1 - Yes, you need to create the window on scene map.

2 - You may need to do an this.addWindow(window) on the scene in order to display it:

this._stealthWindow = new Window_Stealth();this.addWindow(this._stealthWindow);if it gives you an error, you will need to create the window layer for the scene or replace:

this.addWindow(this._stealthWindow);for

this.addChildren(this._stealthWindow);You should also create the Stealth_Window as an extra class...

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-window-on-the-map-scene.51033/