Accumulation of Polar Vorticity on Giant Planets: Towards a Three-Dimensional Theory