I haven't cleaned this window for so many years, I think it must have some mold on it.
musty は通常カビ臭い何かについて言う時に使うので、この場合は次のように mold を使って言うと良いですよ。
ーI haven't cleaned this window for so many years, I think it must have some mold on it.
「この窓を何年も掃除していないので、カビが生えているかもしれない」
mold で「カビ」
musty を使った例文:
ーWe didn't use our cottage for over two years during COVID, so it was pretty musty inside when we went there last weekend.
「コロナで2年以上コテージを使っていなかったから、先週行ってみたら中がすごくカビ臭かった」
ご参考まで!