Runtime import of photo or Dropbox

I am coding a productivity app that allows the user to manipulate his/her documents/photos in a certain way. How do I allow the user to import photos or documents from photo library or Dropbox into the program during runtime?

There’s been a few threads on this but I don’t see a solution. Any help would be appreciated.

Cheers