From what you have written about, it the law enforcement officer had a justifiable belief that the light coming through the window of the home you have written about was the result of illegal activity, then what he or she did by simply peeking through the window from the outside in does not seem to me to be the basis for an illegal search of the inside of the home you have written about.If you have been arrested as a result, I suggest that you consult with a criminal defense attorney.