Show a modal dialog after clicking toolbar button via a plugin

Feel free to share your working code here, it will surely help other people :slight_smile: