Richard Castle (Nathan Fillion) dresses up in his Mal Reynolds costume for Halloween. Or rather, a "space cowboy" in a brown trenchcoat that looks suspiciously like those the Browncoats wore in Firefly and Serenity.
From Castle season 2 episode 6 "Vampire Weekend". Music: Reality Check by Salme Dahlstrom.