Using Name Input window in plugins

I would like to use the "name input processing" window in my plugin to store an entered name into a local variable.


Well, I have tried


SceneManager.push(Scene_Name);
SceneManager.prepareNextScene(1, 16);


but without success (no window is shown).


How can I open the Scene_Name window as an input box? Is there another way to get user inputs and store them into local variables?
You have to add the windows to a scene.

Original thread: https://forums.rpgmakerweb.com/threads/using-name-input-window-in-plugins.57667/