Hi,
Blockly's role is to generate code from blocks. Running the code, and what that code does, is purely up to you. So yes, you can have it call a 3rd party library if you'd like, or create the modal itself, etc. That is really outside the scope of Blockly itself, but you may find some ideas from others here on the forum. Or, what may be easier, is to think about this problem outside the scope of Blockly. If you were writing code in text and there are no blocks involved, how would you create a modal? You may want to search elsewhere for help with that since it's a more general topic. Then, once you know what code to write, how do you get a block to generate that code? If you need help with that step, definitely post here again with more specifics about the code you'd like to generate.
I hope that helps! Good luck,
Maribeth