open view / form as a floating window

open view / form as a floating window

I am looking for a way to open a form or a view in a limited floating window. In a view the 'edit' link does that automatically, but I am trying to get that functionality on demand.