Complex sentence: He was shown playing with a Golden Snitch outside of games and practices, ostensibly to show off, and he apparently had a habit of rumpling up his hair to suggest that he had just stepped off a broomstick.
Split into simpler sentences: He was shown playing with a Golden Snitch outside of games and practices, ostensibly to show off. He similarly had a habit of rumpling up his hair to produce the effect that he had just stepped off a broomstick.