In her new PEOPLE cover story, the actress and writer reveals how she came up with the idea about her beloved hit TV sitcom ...