This is what I'm attempting to do: I'll add a button to the resource pack screen that says 'Add External Pack.', and when the user clicks this button it will load a ResourcePack from wherever the file was.
I've been poking around the ResourcePackRepository files and a bunch similar to it, and I have yet to find a way to insert my own resource pack manually into the list.