When you customize a jquery modal window plug-in and integrate it into an existing platform framework, it can only be displayed in the mainFrame window and cannot be displayed in the top-level window.
The solution to this problem:
It is possible to realize the pop-up window in the top-level window through the following code