This is a complicated issue.
Usually a search in one window affects a search in another window.
However, if the search in another window is done in the Find dialog and the Find dialog is not closed, or if the search if done in the Find toolbar, and the toolbar is still visible, it might behave otherwise.
Please don’t assume either way.
If this is a very important to you, please write exactly how you search in both windows.