What are the consequences for a **developed nation** to not accept any refugees? Are there grave consequences for not accepting any refugees? 

I am asking, because almost every country on the planet accepts refugees as if they were forced to do so, yet I don't see any law that forces any country to do so. What are the factors that compel countries to do so?