How did Latias transform in Pokémon Heroes?
According to Bulbapedia, in the Pokémon Adventures manga, Latias is also able to appear as a human by using its ability to refract light. This is consistent with its Pokédex entry in the Sapphire game: 


  The POKéMON enfolds its body with its down and refracts light to alter its appearance.