Pin a popup dialog

Hello,
I look for pin a popup dialog into scene 3D of blender.
Can you help me to do it, please?
thanks

is there any solution???

What do you mean by “Pin a popup dialog” ?

some pop up need to have a button to escape the window

can you show the code

happy bl