Unique indexes and ANSI_NULLS in SQL Server and Azure SQL!

How to ensure uniqueness and allow NULLs with ANSI_NULLS set to OFF!