Have a look here 379, where someone implemented a soft (differentiable) version of the quadratic weighted kappa in XGBoost.
In general, for backprop optimization, you need a loss function that is differentiable, so that you can compute gradients and update the weights in the model. This is why the raw function itself cannot be used directly.