In your external window you can either place your own designs, or simply use the built-in sdpi.css to style your content.
Clicking the button sends some information to your Property Inspector. Just open the remote-debugger for your Property Inspector and watch the console.