You don't need to do this by yourself. An interesting example would be Ireena from Curse of Strahd. If the party is missing a key role, you can easily turn her into a DMPC who is also a key ...