How to create a custom dialogue box for the editor?

Look into editor tools. Something like this: