This is a weatherstripping which runs along the inside of a window’s frame, against the glass. It helps seal out air, dirt and other contaminants.