The Duchess of Sussex was accompanied by her husband during a discussion about gender equality in Windsor.