VSTGUI 4.2, attached() method is not being called

I figured it out, I just needed to call frame->open(ptr) after creating my frame.