the button's action is tied to a custom client script which calls whatever you need.. be it a suitelet/restlet etc.. If you're trying to render something, then the client script would call the suitelet which would return whatever its rendering back to the client