“Why Don’t You…?” – (Question, Suggestion, or Advice?)

The phrase “Why Don’t You…?” Is it for asking a question, making a suggestion, or offering advice. Why it is not polite, and some possible alternatives