Make Dialogue Box for Input


How can I make the dialogue box like above which is removed when I clicked on the screen?