How to cancel the widget operation of the background layer #1678

When I create a message box, the message box will be in the foreground layer. What I want is that all the widgets in the background layer cannot be clicked or operated. How do I do it?

Take a look at the example linked by @pete-pjb in your GitHub issue:

Thank you, your answer helped me, next time I will look at the examples carefully and ask questions