How to Make Your Taskbar Buttons Always Switch to the Last Active Window
Since Windows 7, apps with multiple open windows are combined into a single taskbar button. Hovering over the button gives you a live thumbnail of every window and you can then click the window you want to work with.
Taskbar Buttons Open Last Active Window Registry Editor Registry Editor Like Last Active Last Active Click
Source: howtogeek.com