How to add UI components in popup

UI components can be added to popup by using the following code snippet.