Forgive the mistakes, I’m from Russia and don’t know English well
We fixed the function and the code started working
But when I launched the scene and clicked on the button, I saw that my pop-up window appeared, but for some reason a second one was created, as you can look at the pictures
I looked at the code and realized that it not only calls my window, but also creates a new one. I have 9 extra lines of code, but the second window is still being created, only it has become smaller in size