" I can imagine"
means you already know and understand what the other says and you agree to it probably due to having previously experienced the same or upon theoretical knowledge or deep understanding of a certain situation .
It could mean you put yourself in the other's shoe and therefore could imagine exactly what he/she is talking about,when it is about feelings.