A remarkable new exhibition at Buckingham Palace recreates the experience of being a guest, whether at a state banquet or a garden party