Make a number picker inside a popup window

Make a number picker inside a popup window and user can pick a number,
click ok, or dismiss