There aren't that much controls in this dialog who can keep the focus and where it makes sense to leave the focus on that element. Since this dialog encourages to search and filter through extensions, the most natural behavior is to put the focus in the search field. My expectation when using this dialog is, that I can see an unfiltered result in either tab when I switch. So, clearing the search filter is a good solution for this dialog.