I think maybe 6~7 years back I would sit in my apartment bedroom with the lights off and look from my window at the tv in the apartment across from mine to watch their tv
Why did you look at their apartment?
Because I was envious of them
It is normal to be envious about what other people have but looking through to their apartment is wrong. In some place it is illegal and could get you arrested.
I was living it was across the street and it's not like I had to hang outside their window or anything.
I'm not saying it was super creepy or anything!  I just think some people might be uncomfortable with someone looking into their house like that, even if it was from that person's own home.  I'm glad you don't do it anymore!