Loading the native WordPress image uploader in custom widget

Is there an easy way of adding the native image uploader from the ‘Image’ widget that comes with WordPress to a custom widget?

The WP_Widget_Media_Image class.

I would have thought there would have been a way to call it in rather than having to code your own.

I tried searching for anything to give me an idea but it’s ridiculous as all that comes up is plugins, plugins and more plugins.

It is exactly this I am trying to replicate basically:

Wordpress Image Widget Media Uploader