Viewport of a group

Is it possible to have a viewport kind of thing of a group? Similar to how a map works. Probably have to implement some custom code.

Any suggestions how to achieve this will be appreciated.