Allow popup to be presented modally

Added the ability for the popup views to be presented modally i.e. they
won't be dismissed when tapping outside the view area.
Updated the Demo to showcase the functionality.