My father bought me this hat.

Literal

Father [topic-は] me [to-に] this hat [object-を] bought [for me-てくれた].

Uses the benefactive 買ってくれた ('bought for me as a favor') with the demonstrative この specifying the particular hat. The くれる perspective frames the gift as appreciated by the speaker.