Opens external media files, responds to search queries, hides the custom view when drawer is open.