Magnetic Buoyancy, Vorticity, and Three-dimensional Flux-Tube Formation