I'm working on a plugin which uses custom post types. When creating or editing one of these custom post types in the WP admin backend, one must be able to select or upload a custom background image from the WordPress media gallery/library (for that post particular). So I want to be able to bring up the default WordPress media library in the backend.
Is there a function / hook / api available to call the WordPress media gallery admin window?
I Googled the entire afternoon, but I don't seem to get the results I need.
P.s. I know that I can use the featured image for that purpose, but I want to preserve the featured image for the user.