"Were you born/raised in a barn?" is an accusation used differently in various parts of the English-speaking world, but most commonly as a reprimand when someone exhibits poor manners by either using ill-mannered language (particularly if related to manure), or leaving doors open.
"Your barn door is open" is used as a euphemism to remind someone to zip the fly of their trousers.