This is what I got off of the guinness.com website:
Glad you asked. The widget is a plastic molded device that sits
on the top of the contents of each can of GUINNESS® Draught. When
the can is opened, a small amount of beer and nitrogen, trapped in
the widget, is forced out through the beer, which creates the
famous creamy head that you find on a pint of GUINNESS® Draught
served in a pub. The widget gives GUINNESS® Draught in cans the
taste and texture of a pub-poured pint at home. In GUINNESS®
Draught in bottles, the clever little 'rocket' widget floats free
in the beer to refresh the creamy head of your GUINNESS® Draught
with each swig you take from the bottle.