Hungary wasn’t exactly “dragged” into WW1. Prime Minister Tisza initially opposed the war, worried about weakening Hungarian dominance and setting off a major European conflict. He later received assurances (no annexation of Serbia and protection of Hungarian political interests) and signed off anyway. After that, Austria-Hungary issued the ultimatum to Serbia, and Europe headed into its bloodiest war to that point.
So, Hungary was a reluctant but consenting partner.