How to add an image to your web page with a widget

When writing a post, whether it’s for the blog or a page, most people are familiar with how you insert images (media) into your content. There is also the option to insert a featured image instead of directly into the post itself. However, what about adding an image to a text widget, or just simply adding an image to a sidebar?