Whats the code to crete a pop up window?

What is the script to create a pop up window on click which I can determine its size? This script is for a button.