I don’t believe there’s a way to do this. VST3 has a feature where images/thumbnails of the plugin can be distributed inside the VST3 bundle, but many plugins don’t make use of this feature, and we don’t surface the feature in JUCE currently. I don’t know of similar functionality in other plugin formats.
createComponentSnapshot() will only take Component graphics into account. It doesn’t handle nested native windows such as plugin editors.