‘Dixie’ is an old song, written before the American Civil War. The song is about slavery. Today, the song is offensive to Black persons. ‘Whistling Dixie’ refers to wishing things could be like they were in the past…something that cannot happen. If a person wishes for something that is unrealistic, you can say he is ‘whistling Dixie’.