context: Mystery Inc. (Fred, Daphne, Velma, Shaggy and Scooby-Doo) attend the opening of an exhibition at the Coolsonian Criminology Museum commemorating their past solved cases with monster costumes on display. However, the celebrations are interrupted by a masked man known as the Evil Masked Figure who steals two costumes using the reanimated Pterodactyl Ghost. The gang are ridiculed by journalist Heather Jasper Howe, who starts a smear campaign against them. Concluding an old enemy is the mastermind, the gang revisit old cases, dismissing the former Pterodactyl Ghost, Jonathan Jacobo, due to his death during a failed prison escape, they guess Jeremiah Wickles, the Black Knight Ghostâs portrayer, is the culprit.
  Going to Wicklesâ mansion, the gang find a book that serves as an instruction manual on how to create monsters. Shaggy and Scooby-Doo find a note inviting Wicklesâ to visit the Faux Ghost nightclub. They are attacked by the Black Knight Ghost, but escape when Daphne holds him off. Shaggy and Scooby sneak into the Faux Ghost, speaking to Wickles, but learn he has resolved his ways. The rest of the gang discover the key ingredient to create the monsters is a substance called "randomonium" which can be found at the old silver mining town. They go to the museum, accompanied by the curator and Velmaâs love interest Patrick Wisely, but discover the rest of the costumes have been stolen. Heather Jasper Howe ridicules the gang further by turning the city against them. The gang go to the mines, finding Wickles's plans to turn it into an amusement park. As they confront Wickles, he states that he and Jacobo were cell-mates who hated each other and that he has no connection to the museum robberies.
  The gang then find the Monster Hive where the costumes are brought to life as real monsters. Shaggy and Scooby play around with the machineâs control panel, bringing several costumes to life, and the gang flee the city with the panel as the Evil Masked Figure terrorizes the city. Escaping to their old high school clubhouse, the gang realize they can reverse the control panelâs power by altering its wiring. Captain Cutlerâs Ghost emerges from the bayou, forcing the gang to head back to the mines, encountering the various monsters along the way. Velma encounters Patrick in the mines, finding a shrine dedicated to Jacobo, but Patrick proves his own innocence by rescuing Velma from falling through a catwalk.
  The gang confront the Evil Masked Figure, but the Tar Monster captures all of them but Scooby, who uses a fire extinguisher to freeze the Tar Monsterâs body. He reactivates the control panel, transforming the costumes back to normal. The gang take the Evil Masked Figure to the authorities, unmasking him as Heather, but in turn reveal she is actually Jacobo in disguise, having escaped death and tried to get revenge on Mystery, Inc. by discrediting them. Jacoboâs cameraman Ned is also arrested as an accomplice. Mystery, Inc. are praised as heroes once again in Coolsville. In the Faux Ghost, the gang celebrates their victory with the now reformed criminals whom they unmasked in the past (including Wickles).
question: Why is the Pterodactyl Ghost able to fly out the window?
answer: Randomonium