Upfront Custom Draggable Element

I would like to create custom elements to be used within upfront.
Is there a way to do this? I would like to add a php script that displays a login link if the user is logged out or a logout URL if the user is logged in, but I am not limiting things to just that.

Thank you