It works Ok with extension -- normally .bak -- and without any extension. A backup file incorporates both database files mdf and ldf.
A database can be restored from a backup file within SQL Server Management Studio using the context menu for the database. Same can be achieved by issuing a command RESTORE DATABASE ... FROM DISK ... TO ...