Hi Niranjan,
Please activate the option "Whole Test Case" in the Switch_Window step. This will make sure you are running additional steps on the new window before it can be closed and return to the main window. If it stays in Default, the test case will think that you would like to execute the remaining steps on the main window instead of the newly opened one.
Regards,
Subject7 Team