If you want to do that you will need to play with the Source code and add some stuff, many people have done engine plugins, you might want to analize how they have built them, here is a list of UE4 plugins, the pages possibly contain a bit of explanation on how they have constructed the plugins.