Well, 'Menace to Society' isn't based on real events. It's more of a fictional narrative crafted to engage the audience and explore certain themes and ideas.
The shared ideology might be another factor. Both Luffy and Dragon seem to oppose the unjust systems in the One Piece world. Luffy wants to bring freedom to the islands he visits, while Dragon aims to topple the World Government which is often seen as corrupt. So in fanfiction, this common ground can be exaggerated to make Luffy more like Dragon.