The noun is derived from dog + leg, referring to the shape of the hind leg of a dog. The verb is derived from the noun.
Practice speaking and memorizing "dogleg" and many other words and sentences in English.