-[NSWindow isMiniaturized] must be used from main thread only (Component::isShowing())

I recently tried my project on a newer version of Xcode (13.2.1 on Big Sur) than what I have been using (10.3 on Mojave) and there’s a (new) purple warning for “-[NSWindow isMiniaturized] must be used from main thread only”

This gets called as a result of Component::isShowing().

juce_mac_NSViewComponentPeer.cpp:

    bool isMinimised() const override
    {
        return [window isMiniaturized];
    }

Basically, I have a HighResolutionTimer calling some functions that, among other things, update some meters, and in the meters I was using Component::isShowing() to decide if I needed to draw anything. But the HighResTimer executes in a different thread.

What is the correct way to deal with this situation?