Door and window contacts