Zoom to selection

How can I add a zoom to selection feature to this?

I just want a basic marquee zoom. Like draw a rectangle on the map and zoom into the rectangle… just like on this map

Thanks for the help. Its really appreciated.