How to setup splitscreen lobby

Im interested in knowing how to setup a splitscreen multiplayer lobby. Like letting the players select a character and a team and having them have control in the same widget like for ex in Mario Kart where both players interact in the same widget.