How do I add a global search form to the header?

Is there any way to add a Global Search form to the header of a website?