Yoma, if you are using bootstrap or any thing like that you can call the modals as per their documentation. Just make sure your webpart or content is in the body section of the modal. Otherwise, you have to use jQuery modals. All of it will be similar as in you take your content, place it in the markup from an example in their documentation and make the js call to show the modal.