Set Brush not working

It has to be in the viewport to change the image? Hmm how do I change an image in a widget without it being in the viewport?

For example, this one’s a stat screen the player pulls up with a button press, I want the image to change without the widget being active at the time so that it can happen while the stat screen is not up.