how to transfer a user to the toplevel window when he tries to switch to the main window. and the main window should be inactive.
I tried to find the answer on the internet, but I never found it.
I need functionality, for example, when opening explorer, select a file/folder and try to switch to the application that opened this window.
Use the grab.set() method to set the focus on the top window