Shortly before in the window of my house, i saw something that i have never seen.I think that this has to do with metamorphosis but im not sure.Please see photos and reply me.

Post's pictures

11798238_1607879596151968_109145233_n.jpg, 67.3 kb, 540 x 960

11823916_1607879589485302_508999116_n.jpg, 53.88 kb, 540 x 960

11844092_1607879062818688_1679239768_n.jpg, 95.61 kb, 960 x 540

This is the cocoon of an insect - possibly a moth, but I'm afraid I'm not sure.