If you want to get the predictions that only include these 4 classes, I think you could perform a mapping operation that maps other classes to the background.
If you want to get to the metrics of these 4 classes, in my shallow view, the other 9 classes will have an influence on the prediction result, because on is a 13-classes classification task and anthor one is 4-classes classification task.