add custom link to wordpress media gallery modal


Is possible to add a custom field to the wordpress media-library popup? I want to link some images gallery to external links. I’m getting the images where I want to display it using get_post_gallery_images(). I’m not sure if a custom metabox can achieve this?