Isocyanates or isothiocyanates containing non-reactive high-molecular-weight compounds