You can always apply for a Schengen visa even if you are in a non-resident country and all you need to do is provide a reason for the same.