Add an API for opening a message dialog with text