Is it possible to save rendered viewport image when current viewport is shaded?

Hi,

I am wondering is it possible to save viewport image in local drive when I am working in different viewport. For example, I want to save rendered viewport image in my local drive even though my current view is shaded.
I could get active viewport information and save viewport image but couldn’t figure out the way to save viewport image which I am not currently working on.

Thanks!