Whoof, that's a pretty ambitious aim. Have you searched on the query? Because I'm pretty sure the Q has been posed before, here and at other forums.
To provide a little context: the biggest difference between a non-pinMAME table and one running pinMAME is who's in control, so to speak. In the former scenario, the table author has to manually set everything up such that their table is in control, via VP. In the latter, it's really pinMAME that's in control, with VP providing the keystroke and event inputs. The table logic is almost nonexistent in that case, and it's pretty hard for the author to exert much control because of all that. That said, possibly there's a way to deliberately pause or mute the ROM, so that you can do something like play some custom music or something. I don't think I've ever heard of that being done with older VP versions, but possibly it's something that's been done with later VPX tables.
You might also look at certain tables that simulate ROM content. I think that's most often done with FP, not VP. FP never got integrated with pinMAME AFAIK, which is why some authors made that effort. Anyway, in such a case, the author has to capture all the media content from the ROM, such as the DMD animation and the music and sounds, then work them in to the table as MP3's and MOV's and that sort of thing. You could start by looking for SS tables simulated in FP (or sometimes VP) to get some examples. There are probably some in the resource section.
So there's three leads for you to follow up on. :)