Vortex Matter in a Superconducting Square Under 2D Thermal Gradient