VST racking

Hi Developers

What is the best way to implement racking of an VST plugins (embedding user defined vst 2.4 or vst 3 plug into my plugin)?
I assume that I have to implement something like host into the VST plug. I’m using the VST3 SDK with the VST2 wrapper and think of importing the legacy 2.4 vsties.