Disable Screen in the background

One of my screens opens a smaller window. While the smaller window is opened I want everything else to be disabled. How can I achieve that?

for this purpose, you should make the dialog window modal. See the following example:

openWindow("sec$User.lookup", WindowManager.OpenType.DIALOG.setModal(true));

For more examples visit our documentation.