Wrong window focus after closing a TD window

Having an issue here where closing a secondary TD window brings into focus a different app’s window, not the main TD perform window. Anyone had this issue? Video link: drive.google.com/file/d/1Qgq_IE … sp=sharing

Hi, the movie link is broken unfortunately. How are you closing the secondard window, with the “X” on the top of the window or via a script?