I’ve found one issue while debugging the MAS(digital performer) version of my plugin.
In this plugin format, you need to setup some stuff before drawing, so I’ve used windowRepaintedExplictly.
juce_Slider.cpp(1312) and juce_ScrollBar.cpp(402) calls performAnyPendingRepaintsNow
Those shouldn’t call this function if the peer has been set to windowRepaintedExplictly
This should explain the same kind of issue in VST or PT plugins.