Notionally the "wars" on drugs and terror are more akin to the Islamic principle of
jihad, in the sense of a struggle, rather than of military domination, occupation, and conquest.
In the case of World War II, numerous governments were created from whole cloth following the war, amongst conquored territories, in newly-created states, and even amongst some of the winners.
Notably, Japan had a constitution imposed on it by the United States, which largely exists to the present day. Some traditional institutions were preserved (e.g., the emperor), but in almost entirely symbolic form. Germany likewise was reconstituted under a new government, as was Italy. Even France saw a new government formed (the Fifth Republic) in 1958. The states of the Eastern bloc were reconstituted under Communist rule as Soviet satellites. India, Indonesia, the Phillipines, and several Arabic states received independence. The state of Israel was formed. Much of Africa decolonised in the 1950s and 1960s.
There was of course some continuity through all of this, but in large part, new governments emerged and old laws were often voided.