A possible mechanism for the formation of tilted disks in intermediate polars