When referring to the bedroom, there's no difference to say "habitación" o "dormitorio", however, "habitación" also can also refer to any other room in the house. For instance, "la casa tiene 3 habitaciones, un living, una cocina y un dormitorio" (the house has 3 rooms, a kitchen, a living-room and one bedroom)
I hope I have been of some help! ;)